package com.andy.buyu.server.action;

import org.springframework.stereotype.Component;

import com.andy.buyu.server.game.GameUser;
import com.andy.buyu.server.socket.GmAction;
import com.andy.buyu.server.socket.MySocketSession;
import com.andy.buyu.server.socket.SendUtil;
import com.andy.buyu.server.socket.codec.DataWrap;

/**
 * 聊天逻辑
 * @author cuiwm
 *
 */
@Component(GmAction.ACTION_PREFIX+GmAction.ACTION_131)
public class Action131 implements IReqAction{

	@Override
	public void doAction(MySocketSession session, DataWrap data) {
		GameUser user = session.getUser();
		String msg = data.getString();
		
		if(user.getRoom() != null){
			SendUtil.send131(user,msg);
		}
		
		
	}


	
	
	
}
